const app = require('./app/index')
const { SERVER_HOST, SERVER_PORT } = require('./config/server')
// require导入时，能执行该文件
require('./utils/handle-error')

app.listen(SERVER_PORT, 'localhost', () => {
  console.log(`${SERVER_HOST}:${SERVER_PORT}`);
})